<template>
  <div id="app">
    <el-container style="height: 100vh">
      <el-aside style="background-color: #545c64">
        <p style="text-align: center"><img src="../assets/logo.png" height="200" width="200"/></p>
        <MainMenu/>
      </el-aside>
      <el-container>
        <el-header style="background-color: #545c64">Header</el-header>
        <el-main>
          <router-view></router-view>
          <HelloWorld v-if="false" msg="Welcome to Your Vue.js App"/>
        </el-main>
        <el-footer>asdasd</el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import HelloWorld from '../components/HelloWorld.vue'
import MainMenu from '../components/MainMenu'
export default {
  name: 'Bg',
  components: {
    HelloWorld,
    MainMenu
  },
  methods: {
    test: function () {
      this.$http.post('v1/test').then(function (res) {
        alert(res.data.data)
      })
    }
  }
}
</script>

<style>
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #2c3e50;
  }
</style>
